<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="移除HA成员">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="HA00022.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
<meta name="DC.Publisher" content="20240320">
<meta name="documenttype" content="usermanual">
<meta name="prodname" content="csbs">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="HA00024">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>移除HA成员</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="HA00024"></a><a name="HA00024"></a>

<h1 class="topictitle1">移除HA成员</h1>
<div><p>如果您需要移除HA成员，请参考本节操作。移除HA成员后，HA成员变为成员节点。</p>
<div class="section"><h4 class="sectiontitle">前提条件</h4><p>系统中已添加HA成员。</p>
</div>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li><span>选择<span class="menucascade" id="HA00024__ha00012_menucascade31053579148">“<span class="uicontrol" id="HA00024__ha00012_uicontrol41059577142"><span id="HA00024__ha00012_text1054020121612">系统</span></span> &gt; <span class="uicontrol" id="HA00024__ha00012_uicontrol154661958121418"><span id="HA00024__ha00012_text8757278167">基础设施</span></span> &gt; <span class="uicontrol" id="HA00024__ha00012_uicontrol54471544151"><span id="HA00024__ha00012_text1631251418164">集群管理</span></span>”</span>。</span></li><li><span>选择<span class="uicontrol" id="HA00024__ha00012_uicontrol1161813395168">“<span id="HA00024__ha00012_text353374216166">备份集群</span>”</span>。</span></li><li><span>选择<span class="menucascade">“<span class="uicontrol"><span>HA管理</span></span> &gt; <span class="uicontrol"> <span>移除HA成员</span></span>”</span>。</span></li><li><span>系统弹出<span class="uicontrol">“<span>危险</span>”</span>提示框，确认提示信息无误后，单击<span class="uicontrol">“<span>确定</span>”</span>。</span><p><p><span><img src="zh-cn_image_0000001792502790.png"></span></p>
<p></p>
<div class="note"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><ul><li>移除HA成员完成后，备节点的状态为<span class="uicontrol">“<span>删除中</span>”</span>，稍等片刻系统自动进行刷新，状态变为<span class="uicontrol">“<span>在线</span>”</span>。</li><li>强制移除场景：如果待移除的HA成员为离线状态，需要进行强制移除。请在强制移除HA成员前执行以下操作：<ol type="a"><li>以管理员或超级管理员身份登录CLI管理界面。</li><li>执行以下命令查看<span class="uicontrol">“gaussdb-0”</span> pod状态。<pre class="screen">show container_application general name=dataprotect namespace=dpa</pre>
<p>回显如下表示pod状态正常。</p>
<pre class="screen">PodList:
  Pod Name                      Pod Status  Pod Restart Times  Pod Cpu Percent(%)  Pod Memory Percent(%)  Pod Belong Node  Pod Namespace  Pod Is Ready  
  ----------------------------  ----------  -----------------  ------------------  ---------------------  ---------------  -------------  ------------  
  gaussdb-0                     Running     1                  13.33               3.32                   node-1           dpa            true          
  infrastructure-0              Running     1                  --                  8.89                   node-1           dpa            true          
  dataenableengine-server-0     Running     0                  34.00               9.71                   node-0           dpa            true          
  dataenableengine-server-1     Running     1                  34.00               9.71                   node-1           dpa            true          
  protectengine-e-dma-0         Running     1                  1.33                0.32                   node-1           dpa            true          
  protectengine-0               Running     1                  --                  12.37                  node-1           dpa            true          
  protectengine-1               Running     0                  --                  12.37                  node-0           dpa            true          
  sftp-0                        Running     5                  --                  0.77                   node-1           dpa            true          
  protectmanager-biz-service-0  Running     0                  13.33               3.73                   node-0           dpa            true          
  protectmanager-biz-service-1  Running     1                  13.33               3.73                   node-1           dpa            true          
  protectmanager-system-base-1  Running     1                  16.67               3.90                   node-1           dpa            true          
  protectmanager-system-base-0  Running     0                  16.67               3.90                   node-0           dpa            true </pre>
<p>如果<span class="uicontrol">“gaussdb-0”</span>pod非running状态，请直接强制移除HA成员，不需进行后续操作。</p>
</li><li>执行<strong>change user_mode current_mode user_mode=developer</strong>命令切换为developer模式。并按提示信息进行操作。</li><li>执行<strong>minisystem</strong>命令进入小系统。</li><li>如果pod状态正常，但备节点显示离线，请在下发强制移除HA节点后立即（5分钟内）执行以下命令停止<span class="uicontrol">“gaussdb-0”</span> pod。并按提示信息进行操作。<pre class="screen">container.sh -c kubectl delete pod gaussdb-0 -n dpa</pre>
<p>回显如下表示pod停止成功。</p>
<pre class="screen">Storage: minisystem&gt; container.sh -c kubectl delete pod gaussdb-0 -n dpa
DANGER: You are going to perform a danger command. Ensure that no container are being used. Otherwise, this behavior causes container service interruption.
Suggestion: Before you perform this operation, make sure that the operation will not affect working of system.
Have you read danger alert message carefully?(y/n)
y
Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command.
I have read and understand the consequences associated with performing this operation.
pod "gaussdb-0" deleted
exec kubectl success</pre>
</li></ol>
</li></ul>
</div></div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="HA00022.html">管理HA</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>